package com.wasion.pwportable.protocol.analyzer.indicator;

import com.wasion.pwportable.protocol.analyzer.AbstractAnalyzer;

/**
 * 
 * @ClassName: Ground_Sample_RD_Analyzer
 * @Description: 7D. 接地故障故障时刻电场瞬时值...
 * @author 高意
 * @date 2014-9-11 上午9:55:18
 * 
 */
public class Ground_Sample_RD_Analyzer extends AbstractAnalyzer {

	@Override
	public void dataAnalysis(String ackBS) {

		String data = ackBS.substring(DATABITSTART, DATABITSTART + 12);

		result.setTempElectricField(Integer.parseInt(data.substring(0, 4), 16));
		result.setGroundFaultSample(Integer.parseInt(data.substring(4, 8), 16));
		result.setGroundFaultSoftwareID(data.substring(8, 12));
	}
}
